﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 工位日志
    /// </summary>
	[Table("T_AlarmLogRecord")]

    [Display(Name = "_Model.StationLogRecord")]
    public class AlarmLogRecord : BasePoco
    {
        [Display(Name = "报警时间")]
        public DateTime? warningTime { get; set; }
        [Display(Name = "产线编号")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string lineCode { get; set; }
        [Display(Name = "工位号")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string stationCode { get; set; }
        [Display(Name = "工序号")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string operationCode { get; set; }
        [Display(Name = "设备号")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string machineCode { get; set; }
        [Display(Name = "报警代码")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string warningCode { get; set; }
        [Display(Name = "报警类型")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string warningType { get; set; }
        [Display(Name = "报警详情")]
        [StringLength(200, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string warningDesc { get; set; }


    }

}
